using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Interpolation
{
    /// <summary>
    /// <para>Spline with Barriers</para>
    /// <para>Interpolates a raster surface, using barriers, from points using a minimum curvature spline technique. The barriers are entered as either polygon or polyline features.</para>
    /// <para>使用障碍从使用最小曲率样条线技术的点插值栅格表面。障碍以面或折线要素的形式输入。</para>
    /// </summary>    
    [DisplayName("Spline with Barriers")]
    public class SplineWithBarriers : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SplineWithBarriers()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_point_features">
        /// <para>Input point features</para>
        /// <para>The input point features containing the z-values to be interpolated into a surface raster.</para>
        /// <para>包含要插值到表面栅格中的 z 值的输入点要素。</para>
        /// </param>
        /// <param name="_Z_value_field">
        /// <para>Z value field</para>
        /// <para><xdoc>
        ///   <para>The field that holds a height or magnitude value for each point.</para>
        ///   <para>This can be a numeric field or the Shape field if the input point features contain z-values.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>保存每个点的高度或大小值的字段。</para>
        ///   <para>这可以是数值字段，也可以是形状字段（如果输入点要素包含 z 值）。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_Output_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output interpolated surface raster.</para>
        ///   <para>It is always a floating-point raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出插值表面栅格。</para>
        ///   <para>它始终是浮点栅格。</para>
        /// </xdoc></para>
        /// </param>
        public SplineWithBarriers(object _Input_point_features, object _Z_value_field, object _Output_raster)
        {
            this._Input_point_features = _Input_point_features;
            this._Z_value_field = _Z_value_field;
            this._Output_raster = _Output_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Spline with Barriers";

        public override string CallName => "sa.SplineWithBarriers";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_Input_point_features, _Z_value_field, _Input_barrier_features, _Output_cell_size, _Output_raster, _Smoothing_Factor];

        /// <summary>
        /// <para>Input point features</para>
        /// <para>The input point features containing the z-values to be interpolated into a surface raster.</para>
        /// <para>包含要插值到表面栅格中的 z 值的输入点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input point features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Input_point_features { get; set; }


        /// <summary>
        /// <para>Z value field</para>
        /// <para><xdoc>
        ///   <para>The field that holds a height or magnitude value for each point.</para>
        ///   <para>This can be a numeric field or the Shape field if the input point features contain z-values.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>保存每个点的高度或大小值的字段。</para>
        ///   <para>这可以是数值字段，也可以是形状字段（如果输入点要素包含 z 值）。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Z value field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Z_value_field { get; set; }


        /// <summary>
        /// <para>Input barrier features</para>
        /// <para>The optional input barrier features to constrain the interpolation.</para>
        /// <para>可选的输入屏障功能用于约束插值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input barrier features")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _Input_barrier_features { get; set; } = null;


        /// <summary>
        /// <para>Output cell size</para>
        /// <para><xdoc>
        ///   <para>The cell size of the output raster that will be created.</para>
        ///   <para>This parameter can be defined by a numeric value or obtained from an existing raster dataset. If the cell size hasn't been explicitly specified as the parameter value, the environment cell size value will be used if specified; otherwise, additional rules will be used to calculate it from the other inputs. See the usage section for more detail.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>将创建的输出栅格的像元大小。</para>
        ///   <para>此参数可以由数值定义，也可以从现有栅格数据集中获取。如果尚未将像元大小显式指定为参数值，则在指定的情况下将使用环境像元大小值;否则，将使用其他规则从其他输入计算它。有关详细信息，请参阅用法部分。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output cell size")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _Output_cell_size { get; set; } = null;


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output interpolated surface raster.</para>
        ///   <para>It is always a floating-point raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出插值表面栅格。</para>
        ///   <para>它始终是浮点栅格。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_raster { get; set; }


        /// <summary>
        /// <para>Smoothing Factor</para>
        /// <para><xdoc>
        ///   <para>The parameter that influences the smoothing of the output surface.</para>
        ///   <para>No smoothing is applied when the value is zero and the maximum amount of smoothing is applied when the factor equals 1.</para>
        ///   <para>The default is 0.0.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>影响输出图面平滑度的参数。</para>
        ///   <para>当值为零时，不应用平滑处理，当因子等于 1 时，应用最大平滑处理量。</para>
        ///   <para>默认值为 0.0。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Smoothing Factor")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _Smoothing_Factor { get; set; } = 0;


        public SplineWithBarriers SetEnv(int? autoCommit = null, object cellSize = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}